package com.android.lovingpet.bean;

import com.android.lovingpet.util.Utility;

import java.util.ArrayList;

public class JsonIds {

    private int code;
    private ArrayList<String> url;
    private ArrayList<Integer> ids;
    private ArrayList<Integer> like;
    private ArrayList<Integer> follow;


    public int getCode() {
        return code;
    }

    public ArrayList<String> getUrl() {
        return url;
    }

    public ArrayList<Integer> getIds() {
        return ids;
    }
    public ArrayList<Integer> getLike() {
        return like;
    }
    public ArrayList<Integer> getFollow() {
        return follow;
    }

    public void saveLike(int realId)
    {
        Account account= Utility.getAccount(realId);
        account.getLikes().clear();
        for (int i=0;i<getLike().size();i++)
        {
            //添加关注的人的id
            int id=getLike().get(i);
            account.getLikes().add(id);
           // getOtherInfo(id);
        }
        account.saveOrUpdate();
    }
}
